package glaf;

import javax.swing.BorderFactory;
import javax.swing.Icon;
import javax.swing.JButton;

@SuppressWarnings("serial")
public class GButton extends JButton {

	public GButton() {
		this("");
	}

	public GButton(String text) {
		this(text, null, 1);
	}

	public GButton(Icon icon, int border) {
		this("", icon, border);
	}

	public GButton(Icon icon) {
		this(null, icon, 1);
	}

	public GButton(String text, Icon icon, int border) {
		super(text, icon);
		setBorder(BorderFactory.createEmptyBorder(border, border, border, border));
		setContentAreaFilled(false);
		setFocusPainted(false);
	}

}